package com.ccc.boot.log;

import java.io.Serializable;

/**
 * 日志信息
 *
 * @author superC
 * @version 0.1.0
 * @date 2022/4/8
 */

public class LogInfo implements Serializable {

    private static final long serialVersionUID = 2028954281173986207L;

    /**
     * 客户端类型（1 web端；2 APP）
     */
    private Integer clientType;

    /**
     * 登录用户账号
     */
    private String username;

    /**
     * 登录用户的IP
     */
    private String ip;

    /**
     * 登录用户所在国家
     */
    private String country;

    /**
     * 登录用户所在省（自治区或直辖市）
     */
    private String region;

    /**
     * 登录用户所在市（县）
     */
    private String city;

    /**
     * 运营商
     */
    private String isp;

    /**
     * 用户代理
     */
    private String userAgent;


    /**
     * 请求菜单名称
     */
    private String menuName;

    /**
     * 请求路径
     */
    private String path;

    /**
     *  请求方法
     */
    private String method;

    /**
     * 登录用户的TOKEN
     */
    private String tokenkey;

    /**
     * 异常信息
     */
    private String code;

    private String message;

    private String errorMessage;

    public LogInfo() {
    }

    /*  ********* getter/setter *********** */

    public Integer getClientType() {
        return clientType;
    }

    public void setClientType(Integer clientType) {
        this.clientType = clientType;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getIsp() {
        return isp;
    }

    public void setIsp(String isp) {
        this.isp = isp;
    }

    public String getUserAgent() {
        return userAgent;
    }

    public void setUserAgent(String userAgent) {
        this.userAgent = userAgent;
    }

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getTokenkey() {
        return tokenkey;
    }

    public void setTokenkey(String tokenkey) {
        this.tokenkey = tokenkey;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }
}